package top.hisoft.pattern.creational.abstractfactory.farm.vegetables;

import top.hisoft.pattern.creational.abstractfactory.farm.Vegetable;

/**
 * 热带蔬菜.
 *
 * @author sky
 * @since 2025-05-31
 */
public class TropicalVegetable implements Vegetable {

    /**
     * 蔬菜名字
     */
    private String name;

    public TropicalVegetable(String name) {
        System.out.println("Tropical vegetable :" + name);
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

}
